package com.atos.howl.chaos.pdm.mapper;

import com.atos.howl.chaos.pdm.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author Howl-Xu
 * @version 1.0.0
 * @Description: 请描述一下这个类文件吧
 * @createTime 2020年02月12日 09:59:00
 */
public interface FileMapper {

    @Insert("insert into chaos_head_img(img_base64,user_uuid) VALUES (#{headImgBase64},#{loginUserUUID})")
    void uploadHeadImgBase64(@Param("headImgBase64") String headImgBase64, @Param("loginUserUUID") String loginUserUUID);

    @Select("select img_base64 from chaos_head_img where user_uuid = #{uuid}")
    String getHeadImgBase64ByUUID(String uuid);


    @Select("select img_base64 from chaos_sys_img where img_name = 'video_player_logo'")
    String getVideoPlayerLogo();
}
